POV-Ray : Newsgroups : povray.general : The Language of POV-Ray : Re: The Language of POV-Ray Server Time
10 Aug 2024 13:21:01 EDT (-0400)
  Re: The Language of POV-Ray  
From: Chris Huff
Date: 9 Mar 2000 17:43:22
Message: <chrishuff_99-6AAACE.17450909032000@news.povray.org>
In article <38C82261.6B18E224@hotmail.com>, Tor Olav Kristensen 
<tor### [at] hotmailcom> wrote:

> If you use an editor with copy and paste features,
> I would guess that the maximum number of extra
> keystrokes you would have to do is about 7 or 8.
> (Or even fewer if you use a mouse.)
> 
> So the problem isn't that big.

Umm, maybe you haven't noticed, but POV is available for many different 
platforms. Many people don't use the built in editor, and some versions 
don't have one. Relying on copy and paste or other editor features is a 
poor solution, and only fixes half of the problem(the time it takes to 
type things in).

Which looks more readable? This:
#declare MyArray[25*X+5*Y+Z][Colour.red] = 
MyArray[25*X+5*Y+Z][Colour.red] + 1;
or this:
#declare MyArray[25*X+5*Y+Z][Colour.red] += 1;
? If you are going back to code that was written by someone else or 
which you haven't used in a while, or even which you wrote yesterday, 
this type of thing can save a lot of time debugging.

BTW, another potentially useful operator is ^ for "to the power of". I 
have written a patch which allows this, it seems to work 
perfectly(although it hasn't been heavily tested). Maybe it will be 
included in MegaPOV sometime...

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.